#include "stdio.h"
#include "string.h"
char a[10][10]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
int main(){
    char arr[10001];
    scanf("%s",arr);
    int len = strlen(arr);
    int sum=0;
    for (int i = 0; i < len; ++i) {
        sum+=arr[i]-'0';
    }
    int tmp[10001]={0};
    int count = 0;
    while (sum!=0){
        tmp[count++] = sum%10;
        sum = sum/10;
    }
    for(int i=count-1;i>0;i--){
        printf("%s ",a[tmp[i]]);
    }
    printf("%s",a[tmp[0]]);
    return 0;
}